package com.wno704.quartz.entity;


import java.io.Serializable;
import lombok.Data;

/**
 * 工作项配置表实体
 *
 * author: wno704
 */
@Data
public class Job implements Serializable{
	
	private static final long serialVersionUID = -6790013575308208047L;

	/**
     * 任务调度参数 key
     */
    public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";
	
	public enum ScheduleStatus {
        /**
         * 正常
         */
        NORMAL("0"),
        /**
         * 暂停
         */
        PAUSE("1"),
        /**
         * 删除
         */
        DEL("2");

        private String value;

        ScheduleStatus(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }
	
    private Long jobId;

    private String beanName;

    private String methodName;

    private String params;

    private String cronExpression;
    
    private String startTime;
    
    private String endTime;

    private String status;

    private String remark;

    private String createTime;

    private String transType;

    private String templateSrcName;

    private String templateDstName;

    private String srcCommd;

    private String dstCommd;

    private String templateDstTwoName;

    private String dstTwoCommd;

}
